from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
import time

from selenium.webdriver.support.wait import WebDriverWait

driver = webdriver.Chrome()
driver.get("http://www.itcast.cn")
driver.maximize_window()

driver.switch_to.frame('chatIframe')

element = WebDriverWait(driver,10).until(
    lambda x: x.find_element(By.CLASS_NAME,'service'))
print(element.text)

time.sleep(50)



